﻿using SqlSugar;

namespace ApiLib.Common.Attributes;

/// <summary>
/// 数据特性，数据库、Excel
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public class DataAttribute: SugarTable
{
    /// <summary>
    /// 无参构造
    /// </summary>
    public DataAttribute()
    {
    }
    /// <summary>
    /// 构造方法
    /// </summary>
    /// <param name="name">描述</param>
    public DataAttribute(string name): base("",name)
    {
    }
    /// <summary>
    /// 构造方法
    /// </summary>
    /// <param name="name">描述</param>
    /// <param name="tableName">数据库表名</param>
    public DataAttribute(string name, string tableName): base(tableName,name)
    {
    }
}